home *** CD-ROM | disk | FTP | other *** search
/ Software of the Month Club 1996 August / Software of the Month Club 1996 August.iso / mac / Games / Showwit! ƒ / Level Editing / Building your own levels next >
Encoding:
Text File  |  1996-02-14  |  3.8 KB  |  118 lines  |  [TEXT/ttxt]

  1. Building your own Showwit! levels
  2. -------------------------------
  3.  
  4. To build levels for Showwit!, you will need to have ResEdit (Resorceror might work also, but I cannot say from personal experience). ResEdit CAN BE DANGEROUS to work with, so never work with the sole copy of your files.
  5.  
  6. There is no level editor for Showwit! as such. Instead, you will use ResEdit to add and modify levels, using a ResEdit template. This template is in the file ╥Showwit! Editor.rsrc╙.
  7.  
  8.  
  9. Creating a new levels file
  10. -----------------------
  11.  
  12. The easiest way to generate a levels file is to copy the file ╥Starter Levels File╙. This will ensure that the application and file signatures are correctly set.
  13.  
  14.  
  15. Adding a level
  16. -------------
  17.  
  18. 1)    Open the file ╥Showwit! Editor.rsrc╙.
  19.  
  20. 2)    Open the file which is to hold the new level.
  21.  
  22. 3)    Double click on the ╥LEVL╙ type resources in your file.
  23.  
  24. 4)    From the Resource menu, select ╥Create New Resource╙.
  25.  
  26. 5)    Your new level will be added to the list of LEVL resources. Associated with each level is a number, the ╥Resource ID╙. For a level to be recognized by Showwit!, it must have a resource ID greater or equal to 128.
  27.  
  28.  
  29. Setting/Changing the level's name
  30. ------------------------------
  31.  
  32. 1)    Select the level, the name of which you want to change.
  33.  
  34. 2)    Choose ╥Get Resource Info╙ from the Resource menu.
  35.  
  36. 3)    Type the name in the box next to ╥Name:╙.
  37.  
  38.  
  39. Editing a level
  40. -------------
  41.  
  42. 1)    Make sure that the file ╥Showwit! Editor.rsrc╙ is open.
  43.  
  44. 2)    Choose ╥Open Resource Editor╙ from the Resource menu.
  45.  
  46. 3)    The level is displayed in 17 ╥grids╙. The first grid is for the starting configuration. The other 16 grids define which tiles flip in response to the given tile, called the ╥tile rules╙.
  47.  
  48. 4)    To edit the starting configuration, work with the four spaces next to ╥Start Config╙. Use a zero (0) if you want that position to start with the picture showing, and a one (1) if you want that position to initially conceal the picture. It is VITAL that the dollar signs ($) stay in place.
  49.  
  50. 5)    To edit a tile rule, work with the four spaces next to ╥n flips╙, where n is the number of the tile which you want to edit. Tiles are numbered as follows :-
  51.  
  52. 1    2    3    4
  53. 5    6    7    8
  54. 9    10    11    12
  55. 13    14    15    16
  56.  
  57. A tile may have up to and including fifteen (15) ╥dependants╙. That is, when a tile flips from a user click, at most 15 tiles can flip in response.
  58.  
  59. The default tile rule is :-
  60.  
  61. $0000
  62. $0000
  63. $0000
  64. $0000
  65.  
  66. which says that the tile has no dependants.
  67.  
  68. For the first dependant, enter a ╥1╙ in the space corresponding to that tile. For instance, for tile number 13 to be the first dependant, we have :-
  69.  
  70. $0000
  71. $0000
  72. $0000
  73. $1000
  74.  
  75. Similarly, enter ╥2╙, ╥3╙, ╥4╙ etc. for subsequent dependants. For the 10th and subsequent dependants, use the hexadecimal values :-
  76.  
  77. 10 decimal = A hexidecimal
  78. 11 decimal = B hexidecimal
  79. 12 decimal = C hexidecimal
  80. 13 decimal = D hexidecimal
  81. 14 decimal = E hexidecimal
  82. 15 decimal = F hexidecimal
  83.  
  84. The order MUST be contiguous. For instance, in the following :-
  85.  
  86. $0001
  87. $0320
  88. $0560
  89. $0007
  90.  
  91. only dependants 1, 2 and 3 will be recognized.
  92.  
  93. A tile may have itself as a dependant. For instance, if the rule for tile 5 is :-
  94.  
  95. $0000
  96. $4321
  97. $0000
  98. $0000
  99.  
  100. then when tile 5 is clicked upon, it will flip, followed by tiles 8, 7, 6 and then 5 again.
  101.  
  102. As before, it is VITAL that the dollar signs ($) stay in place.
  103.  
  104.  
  105. Changing the order of levels
  106. -------------------------
  107.  
  108. Showwit! loads levels in order of increasing resource IDs. Showwit! expects that there be no gaps in these resource IDs; if there is a gap during loading, it will insert a blank level to let you know that something is wrong.
  109.  
  110. To change the resource ID of a level (and hence its position)
  111.  
  112. 1)    Select the level which you want to shift.
  113.  
  114. 2)    Choose ╥Get Resource Info╙ from the Resource menu.
  115.  
  116. 3)    Type the new value in the box next to ╥ID:╙. Showwit! WILL IGNORE any resource IDs less than 128.
  117.  
  118.